'''
while 条件:
    执行语句
'''
index = 0
while index < 5:
    print('老婆我错了')
    index +=1

# 计算1-100 的累加和
i = 1
result = 0
while i <=100:
    result +=i
    i +=1
print(result)

# 计算1-100偶数累加
t = 2
r = 0
while t <=100:
    r +=t
    t +=2
print(r)